package 集合框架.Map.购物车;

/**
 * 购物项类
 */
public class Cartltem {
    //商品对象
    private Goods goods;

    //购买数量
    private int quantity;

    //小计
    private double subTotal;

    public Cartltem() {
    }

    public Cartltem(Goods goods, int quantity, double subTotal) {
        this.goods = goods;
        this.quantity = quantity;
        this.subTotal = subTotal;
    }

    public Goods getGoods() {
        return goods;
    }

    public void setGoods(Goods goods) {
        this.goods = goods;
    }

    public int getQuantity() {
        return quantity;
    }

    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }

    public double getSubTotal() {
        return subTotal;
    }

    public void setSubTotal(double subTotal) {
        this.subTotal = subTotal;
    }
}
